﻿using Astronergy.MES.App.Library;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Astronergy.MES.App.Service
{
    public partial class OEMData : ServiceBase
    {

        private OEMDataConvert _oemDataConvert = null;

        public OEMData()
        {
            InitializeComponent();
            try
            {
                _oemDataConvert = new OEMDataConvert();
            }
            catch { }
        }

        protected override void OnStart(string[] args)
        {
            _oemDataConvert.OpenWatcher();
        }

        protected override void OnStop()
        {
            _oemDataConvert.CloseWatcher();
        }

    }
}
